package com.bachelor.community.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class Vote {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer entityType; // 1-答案；2-评论
    private Integer entityId;
    private Integer voter;
    private String attitude; // neutral, approval, disapproval
}
